package com.ruoyi.legal.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * records对象 practice_records_list_view
 * 
 * @author xiaoxiao
 * @date 2025-07-01
 */
public class PracticeRecordsListView extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String categoryName;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private String userNo;

    /** 刷题记录编号 */
    @Excel(name = "刷题记录编号")
    private String recordNo;

    /** 总题数 */
    @Excel(name = "总题数")
    private Long totalQuestions;

    /** 答对题数 */
    @Excel(name = "答对题数")
    private Long correctCount;

    /** 得分 */
    @Excel(name = "得分")
    private BigDecimal score;

    /** 持续时间(秒) */
    @Excel(name = "持续时间(秒)")
    private Long duration;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }

    public void setUserNo(String userNo) 
    {
        this.userNo = userNo;
    }

    public String getUserNo() 
    {
        return userNo;
    }

    public void setRecordNo(String recordNo) 
    {
        this.recordNo = recordNo;
    }

    public String getRecordNo() 
    {
        return recordNo;
    }

    public void setTotalQuestions(Long totalQuestions) 
    {
        this.totalQuestions = totalQuestions;
    }

    public Long getTotalQuestions() 
    {
        return totalQuestions;
    }

    public void setCorrectCount(Long correctCount) 
    {
        this.correctCount = correctCount;
    }

    public Long getCorrectCount() 
    {
        return correctCount;
    }

    public void setScore(BigDecimal score) 
    {
        this.score = score;
    }

    public BigDecimal getScore() 
    {
        return score;
    }

    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("categoryName", getCategoryName())
            .append("userNo", getUserNo())
            .append("recordNo", getRecordNo())
            .append("totalQuestions", getTotalQuestions())
            .append("correctCount", getCorrectCount())
            .append("score", getScore())
            .append("duration", getDuration())
            .append("createTime", getCreateTime())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .toString();
    }
}
